package com.mysen.sso.model;

import java.util.Date;
import java.util.Set;

import com.mysen.model.BaseModel;

public class Role extends BaseModel {
	private static final long serialVersionUID = 1L;

    private String roleId;
    
    private String roleName;

    private String roleDesc;

    private String rolePid;

    private Byte roleOrder;

    private Byte status;

    private String cuser;

    private Date cdate;

    
    public Role() { }
    public Role(String roleId) {
    	this.roleId = roleId;
	}

	public String getRoleId() {
    	return roleId;
    }
    
    public void setRoleId(String roleId) {
    	this.roleId = roleId;
    }
    
    private User user;
    
	private Set<Permission> permissions;
    
    public Set<Permission> getPermissions() {
		return permissions;
	}

	public void setPermissions(Set<Permission> permissions) {
		this.permissions = permissions;
	}

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc == null ? null : roleDesc.trim();
    }

    public String getRolePid() {
        return rolePid;
    }

    public void setRolePid(String rolePid) {
        this.rolePid = rolePid;
    }

    public Byte getRoleOrder() {
        return roleOrder;
    }

    public void setRoleOrder(Byte roleOrder) {
        this.roleOrder = roleOrder;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public String getCuser() {
        return cuser;
    }

    public void setCuser(String cuser) {
        this.cuser = cuser == null ? null : cuser.trim();
    }

    public Date getCdate() {
        return cdate;
    }

    public void setCdate(Date cdate) {
        this.cdate = cdate;
    }
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
}